<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<?php include_http_metas() ?>
<?php include_metas() ?>

<?php include_title() ?>

<link rel="shortcut icon" href="/favicon.ico" />

</head>
<body>
<div class="admin_menu">
<?php if(get_user_id()): ?>
    <?php include_partial('user/admin_menu'); ?>
<?php endif; ?>
</div>
<div class="wrap">
    <div class="top">
        <div style="height: 28px;">
            <div style="font-size: 11px; margin-left: 110px;">
                <?php //include_partial('user/logon') ?>
            </div>
	            <div class="currency">
	                <?php include_component('user', 'select_currency'); ?>
	            </div>
            <div class="languages">
                <?php include_partial('user/uilng'); ?>
            </div>
        </div>
        <div class="title">
            <?php echo link_to(
                            __('Sansara e-shop')
                            , '@homepage'
                        ) ?>
        </div>
        <div class="ask">
            
        </div>
    </div>
    
    <div class="content_layout">
        <div class="search">
            <?php echo form_tag('product/list') ?>
            <input class="search_input" name="filters[kwd]" type="text" value="<?php echo isset($filters['kwd']) ? strip_tags($filters['kwd']) : '' ?>" /> 
            <input class="search_submit" name="filter" type="submit" value="<?php echo __('search') ?>" />
            </form>
        </div>
        <div class="content_wrap">
            <div class="left">
                <div class="menu_box">
                    <div class="menu_title"><?php echo __('Menu title') ?></div>
                    <?php include_component('tree'
                                        , 'main_menu'
                                        , array('parent' => 0
                                            , 'level' => 1));?>
                </div>
                    <?php $obj = Tree::getByLabel('PRODUCTS');?>
                    <?php include_component('tree'
                                        , 'categories'
                                        , array('parent' => $obj->getId()
                                            , 'level' => 1));?>
            </div>
            <div class="center">
                <?php echo $sf_data->getRaw('sf_content') ?>
            </div>
            <div class="right">
	            <div id="divCartStatus">
	                <?php include_component('cart', 'cart'); ?>
	            </div>
            </div>
            <div style="clear: both;"></div>
        </div>
    </div>
    <div class="bottom"></div>
    <div class="pusher"></div>
</div>

<div class="footer">
    &copy; <?php echo date('Y');?> 
    <?php echo link_to(
                    __('Sansara')
                    , 'http://www.sansara.lt/'
                    , array(
                        'target' => '_blank'
                    )
                ) ?>
</div>

</body>
</html>